![]() |
GetControlDefinition |
||||
Header: | Controls.h | Carbon status: | Unsupported | |
Handle GetControlDefinition ( ControlHandle control );
There is no longer a CDEF resource handle associated with a given control instance. Control definitions on Carbon are associated with an instance via a ControlDefSpec structure.
If you use GetControlDefinition as a means of replacing the control defproc at runtime with code that lives inside your own application (as opposed to a CDEF resource), you no longer ned this function, because the defproc packaging model for Carbon already allows you to store a defproc within your application. (See CreateCustomControl and RegisterControlDefinition.)
If you use GetControlDefinition as a means of replacing the given definition with one of your own, and then calling through to the original one as desired, you no longer need this function. The Carbon Event Manager allows this sort of "patching" mechanism cleanly; you can intercept Carbon events which are destined for a given control and replace or augment the behavior.
If you use GetControlDefinition as a means of calling the definition directly, use SendControlMessage instead.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)